package com.xbongbong.pro.enums.errorcodes;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
* @description: 合同比对错误枚举
* @author zhushuainan
* @date 2022/11/18 14:29:38
*/
@Getter
public enum ContractCompareErrorCodeEnum implements ErrorCode {
    API_ERROR_1620001(1620001,"enum.errorCode.msg.api_error_1620001"),
    API_ERROR_1620002(1620002,"enum.errorCode.msg.api_error_1620002"),
    API_ERROR_1620003(1620003,"enum.errorCode.msg.api_error_1620003"),
    API_ERROR_1620004(1620004,"enum.errorCode.msg.api_error_1620004"),
    API_ERROR_1620005(1620005,"enum.errorCode.msg.api_error_1620005"),

    API_ERROR_1620006(1620006,"enum.errorCode.msg.api_error_1620006"),
    API_ERROR_1620007(1620007,"enum.errorCode.msg.api_error_1620007"),

    API_ERROR_1620008(1620008,"enum.errorCode.msg.api_error_1620008"),
    API_ERROR_1620009(1620009,"enum.errorCode.msg.api_error_1620009"),
    API_ERROR_1620010(1620010,"enum.errorCode.msg.api_error_1620010"),

    /**
     * 合同比对结果异常
     */
    API_ERROR_1620011(1620011,"enum.errorCode.msg.api_error_1620011"),

    /**
     * 抱歉，你暂无权限查看
     */
    API_ERROR_1620012(1620012,"enum.errorCode.msg.api_error_1620012"),

    API_ERROR_1620013(1620013,"enum.errorCode.msg.api_error_1620013"),


    ;

    /**
     * 错误码
     */
    private final int code;
    /**
     * 错误描述
     */
    private final String msg;

    ContractCompareErrorCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public int getCode() {
        return code;
    }

    public String getMsg() {
        return I18nMessageUtil.getMessage(msg);
    }
}
